/** Created by CUIJA on 05-19-2017.*/
function loginService($http) {
  var urlBase = "/api/sysuser";
  var svc = this;

  function login(name, password){
      return $http.post(urlBase+"/login", {"name":name, "password":password});
  }

  return {
    login: login
  }
}

module.exports = loginService;